package com.pacai.homework;

/**
 * @author pacai
 * @version 1.0
 */
public class HomeWork02 {

}


class A02{
    public static int find(String[] str,String findstr){
        int index = -1;
        for (int i = 0; i < str.length; i++) {
            if(str[i].equals(findstr)){
                return i;
            }
        }
        return index;
    }
}
